package com.sanpu.kxe.business.trade.contract;

import com.sanpu.kxe.base.IBaseExtraView;
import com.sanpu.kxe.base.IBasePresenter;
import com.sanpu.kxe.business.card.bean.BankInfoOutput;
import com.sanpu.kxe.business.trade.bean.PayCollectionOutput;

import java.util.List;

/**
 * Description：个人收款
 * Created by 薛勇军 on 2019/9/25.
 */

public interface PersonalGatheringContract {

    interface View extends IBaseExtraView<Presenter> {

        /**
         * 显示选中的银行卡信息
         */
        void showBankInfo(BankInfoOutput infoOutput, boolean isOutBank);

        /**
         * 得到银行卡列表数据
         */
        void setBankListData(List<BankInfoOutput> outBankList, List<BankInfoOutput> inBankList);

        /**
         * 显示列表view
         */
        void showListDataView(List<PayCollectionOutput> payListData);
    }

    interface Presenter extends IBasePresenter {

        /**
         * 获取银行卡列表
         */
        void selectUrmBankPage();

        /**
         * 获取收款渠道
         */
        void collectionList(String collectionType);

        /**
         * 验证收款金额
         */
        boolean checkInputMoney(String gatheringMoney);

        /**
         * 验证收款渠道
         */
        boolean checkCollectionPay(PayCollectionOutput collectionOutput, String inputText);

        /**
         * 计算费率
         */
        double getGatherFee(PayCollectionOutput collectionOutput, String inputText);

        /**
         * 点击确认
         */
        void onComfirmPay(String outBankId, String inBankId, String appCnlConfId, String payAmount);
    }
}
